package game
import (
	//"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/mysql"
	//"time"
	"time"
)
//用户种植模型
type GamePlant struct {
	Id uint `gorm:"primary_key" gorm:"column:id"`
	PId uint `gorm:"column:pId"`
	PName string `gorm:"column:pName"`
	AreaId uint `gorm:"column:areaId"`
	GrowStage string `gorm:"column:growStage"`
	UserId uint `gorm:"column:userId"`
	SType int8 `gorm:"column:sType"`
	PlantTime time.Time `gorm:"column:plantTime"`
	LastOperateTime time.Time `gorm:"column:lastOperateTime"`
	SelfWateringCount int8 `gorm:"column:selfWateringCount"`
	OtherWateringCount int8 `gorm:"column:otherWateringCount"`

	CurGrow int16 `gorm:"column:curGrow"`
	Grow1 int16 `gorm:"column:grow1"`
	Grow2 int16 `gorm:"column:grow2"`
	Grow3 int16 `gorm:"column:grow3"`
	IndexId int8 `gorm:"column:indexId"`
}
//获取种植信息
type PlantResult struct {
	Id uint `gorm:"primary_key" gorm:"column:id"`
	PId uint `gorm:"column:pId"`
	PName string `gorm:"column:pName"`
	AreaId uint `gorm:"column:areaId"`
	GrowStage string `gorm:"column:growStage"`
	UserId uint `gorm:"column:userId"`
	PlantTime time.Time `gorm:"column:plantTime"`
	LastOperateTime time.Time `gorm:"column:lastOperateTime"`
	SelfWateringCount int8 `gorm:"column:selfWateringCount"`
	OtherWateringCount int8 `gorm:"column:otherWateringCount"`
	CurGrow int16 `gorm:"column:curGrow"`
	Grow1 int16 `gorm:"column:grow1"`
	Grow2 int16 `gorm:"column:grow2"`
	Grow3 int16 `gorm:"column:grow3"`
	IndexId int8 `gorm:"column:indexId"`
}
//获取种植信息
type PlantDetail struct {
	GrowStage string `gorm:"column:growStage"`
	CurGrow int16 `gorm:"column:curGrow"`
}
